	lui $1, 0xFFFF #loads MMIO bits of the address
	nop
	nop
	ori $2, $2, 0x000F
	nop
	nop
	lui $3, 0x00F0
	nop
	nop
	sw $2, 0x80($1)
	nop
	nop
wait:	lw $2, 0xC0($1)
	nop
	nop
	bnez $2, wKey
	nop
	nop
	j wait
	nop
	nop
	
wKey: 	lw $2, 0xC4($1)
	nop
	nop
	andi $2, $2, 0xFFFF
	nop
	nop
	or $2, $3, $2
	nop
	nop
	sw $2, 0x84($1)
	nop
	nop
	j wait
